import 'package:easy_refresh/easy_refresh.dart';

class AppRefreshController extends EasyRefreshController {
  AppRefreshController({super.controlFinishRefresh, super.controlFinishLoad});


  //是否正在刷新
  bool get isRefresh {
    return headerState?.mode == IndicatorMode.processed ||
        headerState?.mode == IndicatorMode.processing ||
        headerState?.mode == IndicatorMode.armed;
  }

  //是否正在加载更多
  bool get isLoadMore {
    return footerState?.mode == IndicatorMode.processed ||
        footerState?.mode == IndicatorMode.processing ||
        footerState?.mode == IndicatorMode.armed;
  }
}
